import request from '@/utils/request'
//物资
export function queryWuziPage(data) {
  return request({
    url: '/wuzi/queryWuziPage',
    method: 'post',
    data,
  })
}


export function insertWuzi(data) {
  return request({
    url: '/wuzi/insertWuzi',
    method: 'post',
    data,
  })
}

export function save(data) {
  return request({
    url: '/wuzi/save',
    method: 'post',
    data,
  })
}
export function updateWuzi(data) {
  return request({
    url: '/wuzi/updateWuzi',
    method: 'post',
    data,
  })
}

export function deleteWuziById(data) {
  return request({
    url: '/wuzi/deleteWuziById',
    method: 'post',
    data,
    headers: { 'content-Type': 'multipart/form-data' },
  })
}

export function getImage(data) {
  return request({
    url: '/wuzi/getImage',
    method: 'post',
    data,
    headers: { 'content-Type': 'multipart/form-data' },
  })
}

export function chakanImage(data) {
  return request({
    url: '/wuzi/chakanImage',
    method: 'post',
    data,
    headers: { 'content-Type': 'multipart/form-data' },
  })
}


export function queryFileListByPara(data) {
  return request({
    url: '/wuzi/queryFileListByPara',
    method: 'post',
    data,
    //  headers: { 'content-Type': 'multipart/form-data' },
  })
}



export function insertWuziFile(data, wuziid) {
  return request({
    url: `/wuzi/insertWuziFile?wuziid=${wuziid}`,
    method: 'post',
    data,
    headers: { 'content-Type': 'multipart/form-data' },
  })
}

export function downloadFileByPath(data) {
  return request({
    url: '/wuzi/downloadFileByPath',
    method: 'post',
    data,
    headers: { 'content-Type': 'multipart/form-data' },
  })
}
export function deleteFileByPara(data) {
  return request({
    url: '/wuzi/deleteFileByPara',
    method: 'post',
    data,
    //  headers: { 'content-Type': 'multipart/form-data' },
  })
}
export function getwuzibyID(data) {
  return request({
    url: '/wuzi/queryWuziById',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function importWuzi(data) {
  return request({
    url: `/wuzi/importWuzi`,
    method: 'post',
    data,
    headers: { 'content-Type': 'multipart/form-data' },
  })
}

